﻿<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
<meta charset="utf-8">
<meta name="author" content="chy">
<meta name="keywords" content="">
<meta name="description" content="">
<!--手机头部-->
<meta http-equiv="X-UA-Compatible" content="IE=8">
<meta http-equiv="Cache-Control" content="max-age=0" />
<meta name="MobileOptimized" content="240"/>
<meta name="apple-touch-fullscreen" content="YES" />
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, minimal-ui" />
<meta content="black" name="apple-mobile-web-app-status-bar-style" />
<meta content="telephone=no" name="format-detection" />
<!--手机头部 end-->
<link type="text/css" rel="stylesheet" href="${baseContext}css/base.css">
<link type="text/css" rel="stylesheet" href="${baseContext}css/index.css">
<title>黑龙江省大学生创业服务频道</title>
</head>
<body>
<!--header-->
<%@ include file="header.jsp" %>
<!--header end-->

<!--banner-->
<div class="banner"><img src="${baseContext}images/banner.jpg" class="img"></div>
<!--banner end-->

<!--index-->
<div class="index w1200">
  <!--content01-->
  <div class="content01">
    <!--cloumn-->
    <div class="cloumn left">
    	<!--轮播图-->
      <div class="main_visual">
          <div class="flicking_con">
          	  <s:if test="lowNews_tj.size()==0">
	        	<li>
				 	<a href="#">1</a>
				</li>
				</s:if>
				<s:else>
					<s:iterator id="part" value="lowNews_tj" status="L">
						<a href="#"><s:property value="#L.index+1"/></a>
					</s:iterator>
				</s:else>
          </div>
          <div class="main_image">
              <img src="${baseContext}images/index-img01.jpg" class="img">
              <ul>
              		<s:if test="lowNews_tj.size()==0">
			        	<li>
						 	<a href="#" title="大学生求职过程引导">
			                    <img src="${baseContext}images/index-img01.jpg" class="img" >
			                    <p><span>暂无推荐新闻/资讯</span></p>
                  			</a>
						 </li>
					</s:if>
					<s:else>
						<s:iterator id="part" value="lowNews_tj" status="inf">
							<li>
							<a href="${baseContext}article/${id}.html" title="${title}">
								<img src="${picurl}" class="img" title="${title}" alt="${title}" onerror="javascript:this.src='${baseContext}images/index-img01.jpg'">
								<p><span><s:property value="@org.util.string.StringUtils@subHtmlAndOther(title,14,'...')"></s:property></span></p>
							</a>
							</li>
						</s:iterator>
					</s:else>
              </ul>
              <a href="javascript:;" id="btn_prev"></a>
              <a href="javascript:;" id="btn_next"></a>
          </div>
      </div>
      <!--轮播图 end-->
    </div>
    <!--cloumn end-->
    <!--cloumn-->
    <div class="cloumn center">
      <!--title-->
      <div class="title">
        <span class="left">新闻资讯</span>
        <a href="${baseContext}channel/6.html" title="更多" class="more">更多</a>
      </div>
      <!--title end-->
      <ul class="text-list">
      	
        <s:if test="infNews.size()==0">
        	<li>
			 <a href="#" target="_blank" title="暂无数据">暂无数据</a>
			 </li>
		</s:if>
		<s:else>
			<s:iterator id="part" value="infNews" status="inf">
				<li>
				<s:if test="title.length()>14" >
					<a href="${baseContext}article/${id}.html" target="_blank" title="${title}"><s:property value="@org.util.string.StringUtils@subHtmlAndOther(title,14,'...')"></s:property></a>
				</s:if>
				<s:else>
					<a href="${baseContext}article/${id}.html" target="_blank" title="${title}">${title}</a>
				</s:else>
				<span class="date"><s:date name="posttime" format="yyyy-MM-dd" /></span>
				</li>
			</s:iterator>
		</s:else>
        
      </ul>
    </div>
    <!--cloumn end-->
    <!--cloumn-->
    <div class="cloumn right">
      <!--title-->
      <div class="title">
        <span class="left">工作动态</span>
        <a href="${baseContext}channel/7.html" title="更多" class="more">更多</a>
      </div>
      <!--title end-->
      <ul class="text-list">
        
        <s:if test="jobNews.size()==0">
        	<li>
			 <a href="#" target="_blank" title="暂无数据">暂无数据</a>
			 </li>
		</s:if>
		<s:else>
			<s:iterator id="part" value="jobNews" status="inf">
				<li>
				<s:if test="title.length()>14" >
					<a href="${baseContext}article/${id}.html" target="_blank" title="${title}"><s:property value="@org.util.string.StringUtils@subHtmlAndOther(title,14,'...')"></s:property></a>
				</s:if>
				<s:else>
					<a href="${baseContext}article/${id}.html" target="_blank" title="${title}">${title}</a>
				</s:else>
				<span class="date"><s:date name="posttime" format="yyyy-MM-dd" /></span>
				</li>
			</s:iterator>
		</s:else>
        
      </ul>
    </div>
    <!--cloumn end-->
  </div>
  <!--content01 end-->
  
  <!--content02-->
  <div class="content01">
    <!--cloumn-->
    <div class="cloumn left">
      <!--title-->
      <div class="title">
        <span class="left">通知公告</span>
        <a href="${baseContext}channel/1.html" title="更多" class="more">更多</a>
      </div>
      <!--title end-->
      <ul class="text-list">
      	
        <s:if test="lowNews.size()==0">
        	<li>
			 <a href="#" target="_blank" title="暂无数据">暂无数据</a>
			 </li>
		</s:if>
		<s:else>
			<s:iterator id="part" value="lowNews" status="inf">
				<li>
				<s:if test="title.length()>14" >
					<a href="${baseContext}article/${id}.html" target="_blank" title="${title}"><s:property value="@org.util.string.StringUtils@subHtmlAndOther(title,14,'...')"></s:property></a>
				</s:if>
				<s:else>
					<a href="${baseContext}article/${id}.html" target="_blank" title="${title}">${title}</a>
				</s:else>
				<span class="date"><s:date name="posttime" format="yyyy-MM-dd" /></span>
				 </li>
			</s:iterator>
		</s:else>
       
        
      </ul>
    </div>
    <!--cloumn end-->
    <!--cloumn-->
    <div class="cloumn center">
      <!--title-->
      <div class="title">
        <span class="left">政策文献</span>
        <a href="${baseContext}policy/2.html" title="更多" class="more">更多</a>
      </div>
      <!--title end-->
      <ul class="text-list">
        
        <s:if test="honorNews.size()==0">
        	<li>
			 <a href="${baseContext}channel/15.html" target="_blank" title="暂无数据">暂无数据</a>
			 </li>
		</s:if>
		<s:else>
			<s:iterator id="part" value="honorNews" status="inf">
			<li>
				<s:if test="title.length()>14" >
					<a href="${baseContext}article/${id}.html" target="_blank" title="${title}"><s:property value="@org.util.string.StringUtils@subHtmlAndOther(title,14,'...')"></s:property></a>
				</s:if>
				<s:else>
					<a href="${baseContext}article/${id}.html" target="_blank" title="${title}">${title}</a>
				</s:else>
				<span class="date"><s:date name="posttime" format="yyyy-MM-dd" /></span>
			 </li>
			</s:iterator>
		</s:else>
       
      </ul>
    </div>
    <!--cloumn end-->
    <!--cloumn-->
    <div class="cloumn right">
      <!--tab-nav-->
      <div class="tab-nav">
        <ul>
          <li class="selected"><span>创业学堂</span></li>
          <li><span>创业基地</span></li>
          <li><span>创客之家</span></li>
        </ul>
      </div>
      <!--tab-nav end-->
      <!--tab-box-->
      <div class="tab-box">
        <ul class="text-list qie">
          <li class="more"><a href="${baseContext}policy/8.html" target="_blank">更多</a></li>
          <s:if test="studyNews.size()==0">
        	<li>
			 <a href="#" target="_blank" title="暂无数据">暂无数据</a>
			 </li>
		  </s:if>
		  <s:else>
				<s:iterator id="part" value="studyNews" status="inf">
				<li>
					<s:if test="title.length()>14" >
						<a href="${baseContext}article/${id}.html" target="_blank" title="${title}"><s:property value="@org.util.string.StringUtils@subHtmlAndOther(title,14,'...')"></s:property></a>
					</s:if>
					<s:else>
						<a href="${baseContext}article/${id}.html" target="_blank" title="${title}">${title}</a>
					</s:else>
					<span class="date"><s:date name="posttime" format="yyyy-MM-dd" /></span>
				 </li>
				</s:iterator>
		  </s:else>
        </ul>
        <ul class="text-list qie">
          <li class="more"><a href="${baseContext}channel/9.html" target="_blank">更多</a></li>
          
          <s:if test="enterNews.size()==0">
        	<li>
			 <a href="#" target="_blank" title="暂无数据">暂无数据</a>
			 </li>
		  </s:if>
		  <s:else>
				<s:iterator id="part" value="enterNews" status="inf">
				<li>
					<s:if test="title.length()>14" >
						<a href="${baseContext}article/${id}.html" target="_blank" title="${title}"><s:property value="@org.util.string.StringUtils@subHtmlAndOther(title,14,'...')"></s:property></a>
					</s:if>
					<s:else>
						<a href="${baseContext}article/${id}.html" target="_blank" title="${title}">${title}</a>
					</s:else>
					<span class="date"><s:date name="posttime" format="yyyy-MM-dd" /></span>
				 </li>
				</s:iterator>
		  </s:else>
          
        </ul>
        <ul class="text-list qie">
          <li class="more"><a href="${baseContext}channel/10.html" target="_blank">更多</a></li>
         
         	<s:if test="guestNews.size()==0">
        	<li>
			 <a href="#" target="_blank" title="暂无数据">暂无数据</a>
			 </li>
		  </s:if>
		  <s:else>
				<s:iterator id="part" value="guestNews" status="inf">
				<li>
					<s:if test="title.length()>14" >
						<a href="${baseContext}article/${id}.html" target="_blank" title="${title}"><s:property value="@org.util.string.StringUtils@subHtmlAndOther(title,14,'...')"></s:property></a>
					</s:if>
					<s:else>
						<a href="${baseContext}article/${id}.html" target="_blank" title="${title}">${title}</a>
					</s:else>
					<span class="date"><s:date name="posttime" format="yyyy-MM-dd" /></span>
				 </li>
				</s:iterator>
		  </s:else>
         
         
        </ul>
      </div>
      <!--tab-box end-->
    </div>
    <!--cloumn end-->
  </div>
  <!--content02 end-->
  
  <!--content03-->
  <div class="content03">
    <!--cloumn-left-->
    <div class="cloumn-left left">
      <!--title-->
      <div class="title">友情链接</div>
      <!--title end-->
      <ul>
      <s:iterator id="yqlj" value="friends_st" status="yqlj">
      	<li><a href="${webUrl}" target="_blank" title="${name}">${name}</a></li>
      </s:iterator>
      </ul>
    </div>
    <!--cloumn-left end-->
    <!--cloumn-right-->
    <div class="cloumn-right right">
      <p>输入关键字搜索</p>
      <form id="search" method="post" action="${baseContext}newsHometoSearch.do">
      	<p class="search">
      		<input type="text" placeholder="输入关键字" name="key_word"  class="text" id="key_word">
      		<input type="button" class="sub">
      	</p>
      </form>
      
    </div>
    <!--cloumn-right end-->
  </div>
  <!--content03 end-->
  
</div>
<!--index end-->

<!--footer-->
<%@ include file="footer.jsp" %>
<!--footer end-->

<script type="text/javascript" src="js/jquery-1.8.3.min.js"></script>
<script type="text/javascript" src="js/jquery.event.drag-1.5.min.js"></script>
<script type="text/javascript" src="js/jquery.touchSlider.js"></script>
<script type="text/javascript">
$(".sub").click(function(){
	$("#search").submit();
});
$dragBln = false;

$(".main_image").touchSlider({
	flexible : true,
	speed : 200,
	btn_prev : $("#btn_prev"),
	btn_next : $("#btn_next"),
	paging : $(".flicking_con a"),
	counter : function (e){
		$(".flicking_con a").removeClass("on").eq(e.current-1).addClass("on");
	}
});

$(".main_image").bind("mousedown", function() {
	$dragBln = false;
});

$(".main_image").bind("dragstart", function() {
	$dragBln = true;
});

$(".main_image a").click(function(){
	if($dragBln) {
		return false;
	}
});

timer = setInterval(function(){
	$("#btn_next").click();
}, 5000);

$(".main_visual").hover(function(){
	clearInterval(timer);
},function(){
	timer = setInterval(function(){
		$("#btn_next").click();
	},5000);
});

$(".main_image").bind("touchstart",function(){
	clearInterval(timer);
}).bind("touchend", function(){
	timer = setInterval(function(){
		$("#btn_next").click();
	}, 5000);
});
</script>
</body>
</html>
